{% set modal_class= "modal-lg" %}
{% extends 'TopxiaWebBundle::bootstrap-modal-layout.html.twig' %}

{% block title %}{{course.title}}{{'课程的数据'|trans}}{% endblock %}
{% block body %}
  <div class="table-responsive">
        <table class="table table-bordered" style="word-break:break-all;text-align:center;">
          <tr class="active">
            <td>{{'用户名'|trans}}</td>
            <td>{{'加入课程时间'|trans}}</td>
            <td>{{'完成课程时间'|trans}}</td>
            <td>{{'课程学习天数'|trans}}</td>
            <td>{{'课程学习时长（分）'|trans}}</td>
            <td>{{'提问数'|trans}}</td>
            <td>{{'笔记数'|trans}}</td>
          </tr>

          {% if students %}
            {% for student in students %}
            <tr>
            <td>{{student.nickname}}</td>
            <td>{{student.createdTime|date('Y-m-d H:i:s')}}</td>
            <td>{% if student.fininshTime|default(null) %}{{student.fininshTime|date('Y-m-d H:i:s')}}{% else %}----{% endif %}</td>
            <td>{{student.fininshDay}}</td>
            <td>{{(student.learnTime|default(0)/60)|round(0, 'floor')}}</td>
            <td>{{student.questionCount}}</td>
            <td>{{student.noteNum}}</td>
            </tr>
            {% endfor %}
          {% endif %}


        </table>
     {{ web_macro.paginator(paginator) }}
  </div>


{% endblock %}
